﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  <xsl:param name="rowcount"/>
  <!--数据库总记录数-->
  <xsl:param name="maxrow"/>
  <!--每页记录数-->
  <xsl:param name="curpage"/>
  <!--当前页码-->
  <xsl:param name="param"/>
  <!--引入 param 参数-->
  <xsl:param name="templatename"/>
  <!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>
  <!--Label.xml orderby 参数-->
  <xsl:param name="where"/>
  <!--Label.xml where 参数-->
  <xsl:param name="runtime"/>
  <!--运行时长-->
  <msxsl:script language="javascript" implements-prefix="user">function StrSplit(Str,splitChar,n){
    if(Str.length=0){return '1'}
    var a=Str.replace(/'/g,&quot;&quot;).split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '1';
    return a[n];
    }
    return '1';
    }</msxsl:script>
  <xsl:template match="/">
    <!--标题开头-->
    <form id="form1" name="form1" method="post">
      <table width="100%" border="0" cellspacing="1" bgcolor="#E0E0E0" class="infoEdit">
        <tr>
          <td width="100" bgcolor="#FFFFFF">编码：</td>
          <td bgcolor="#FFFFFF"><xsl:value-of select="rows/row/ID"/>&nbsp;&nbsp;
          <xsl:if test="count(rows/row)&gt;0">
            访问(<xsl:value-of select="rows/row/F_Hits"/>)
          </xsl:if></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">标题：</td>
          <td bgcolor="#FFFFFF"><input name="title" class="w300" id="title" value="{rows/row/F_Title}" size="50" maxlength="50"/><font color="#9e9e9e">&nbsp;50个字符以内</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF">标题样式：</td>
          <td bgcolor="#FFFFFF"><input  name="style" class="w300" id="style" value="{rows/row/F_Style}" size="50" maxlength="50"/>
            <font color="#9e9e9e">&nbsp;
<label>
  <input name="checkbox" type="checkbox" id="checkbox" onclick="if(this.checked)$('style').value+=this.value;else $('style').value=$('style').value.replace(this.value,'')" value="font-weight:bold;"/>加粗
</label>
<label>
  <input name="checkbox" type="checkbox" id="checkbox" onclick="if(this.checked)$('style').value+=this.value;else $('style').value=$('style').value.replace(this.value,'')" value="color:red;"/>套红
</label>
            CSS代码</font></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF">推荐值：</td>
          <td bgcolor="#FFFFFF"><input name="recommend" type="text" size="5"><xsl:attribute name="value"><xsl:if test="count(rows/row)=0">0</xsl:if><xsl:value-of select="rows/row/F_IsRecommend"/></xsl:attribute></input><font color="#9e9e9e">不推荐请填写0.</font></td>
        </tr>
        <tr>
          <td bgcolor="#FFFFFF">栏目：</td>
          <td bgcolor="#FFFFFF"><input  class="w150" id="catalogname" size="50" maxlength="50"/>
          <input type="button" class="btnA" value="新建栏目" onclick="if(TM.doConfirmCmd('新建栏目','新建栏目','pid=109&amp;name='+$('catalogname').value)==1)TM.tList();"/></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF"></td>
          <td bgcolor="#FFFFFF"><label style="float:left">
          <select name="select" size="8" multiple="true" class="w150" id="s1">
          <xsl:value-of select="page:xLoadList('MutiCatalogSelect')"  disable-output-escaping="yes"/></select>
          </label>
          <label style="float:left">
          <input type="button"  class="btnA" value="&gt;&gt;&gt;" onclick="TM.moveOptions('s1','s2')"/><br/>
          <input type="button"   class="btnA" value="&lt;&lt;&lt;" onclick="TM.moveOptions('s2','s1')"/>
          </label>
          <label style="float:left">
          <select  name="catalogs" size="8" multiple="true" class="w150" id="s2">&nbsp;</select>
          </label></td>
        </tr>
        <tr>
          <td width="100" bgcolor="#FFFFFF"><input name="infoid" type="hidden" id="infoid" value="{rows/row/ID}"/>
        </td>
          <td bgcolor="#FFFFFF"> 
          <input class="btnD" id="Submit1" type="button" value="保存"  >
          <xsl:attribute name="onclick">TM.setOptionsSelected('s2');if(TM.doConfirmCmd('新增头条新闻','设成头条新闻',Form.serialize('form1'))==1)TM.pList();</xsl:attribute>
          </input>
          &nbsp; &nbsp;
          <input class="btnD" type="button" value="取消"   onclick="TM.closeTab()"/>
</td>
        </tr>
      </table>
    </form>
<xsl:value-of select="page:xLoadList('新闻相关头条')" disable-output-escaping="yes"/>
  </xsl:template>
</xsl:stylesheet>
